/*
 * Ex13.h
 *
 *  Created on: Oct 10, 2013
 *      Author: Administrator
 */

#ifndef EX13_H_
#define EX13_H_
#include <iostream>
using namespace std;
class Ex13 {
	double *ptr;
public:
	Ex13();
	Ex13(double *ptr):ptr(ptr){};
	virtual ~Ex13();
	Ex13& operator=(const Ex13& b){
		cout << "assignment "<<endl;
		if(&b == this)
			return *this;
		else{
			this->ptr = b.ptr;
		}
		return *this;
	}
	void print()
	{
		cout << *ptr<<endl;
	}
};

#endif /* EX13_H_ */
